Computer science Lesson Plan
Class: 6th to 8th, Lesson 34 : If-then-else Condition

Purpose: To teach if-then-else condition. Students will learn the use of the if-then-else statement.

No. of Classes

2 classes for 20 students with 5 computers.

Materials Required

Computer, Internet connection.

Prior knowledge

Students should know about conditional statements.

Exercises

Exercise:1



1. Using an ‘if’ condition, try to get nectar from the flowers.

No Image

Exercise:2



2. Using an ‘ if’ condition, try to get nectar from the flowers.

No Image

Exercise:3



3. Using an ‘if’ condition, try to get nectar from the flowers.

No Image

Exercise:4



4. Using an ‘if-then-else’ condition try to get nectar from the flowers.

No Image

Exercise:5



5. Using an ‘if-then-else’ condition try to get nectar from the flowers.

No Image

Exercise:6



6. Using an ‘if-then-else’ condition try to get nectar from the flowers.

No Image

Solutions




Teacher's Instruction
  1. Teachers should give their own creative activity to help Students understand ‘if-then-else’ conditions.
  2. Teachers should explain the concept of if and if-else conditions, by using the solution videos of exercise-1 and exercise-4.
  3. Sign-in into the code.org before playing the game.